package com.chance.cc.crawler.prod.command.schedule.commerce.vip;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.vip.realtime.VipArticleUrlCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @ClassName vip
 * @Description TODO
 * @Author songding
 * @Date 2021/10/19 14:19
 * @Version 1.0
 **/
public class VipCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {
    public static void main(String[] args) {
        //每天采集最新评论
       // commonCrawlerScheduleJob(VipCommentCrawlerScheduleJob.vipCrawlerJob());
        //每天采集文章
      //  commonCrawlerScheduleJob(VipArticleCrawlerScheduleJob.vipCrawlerJob());
        //每月采集一次全品链接
        commonCrawlerScheduleJob(VipArticleUrlCrawlerScheduleJob.vipCrawlerJob());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
}
